<template>
    <h1>父组件</h1>
    <h2 ref="dom">num:{{ num }}</h2>
    <button @click="getDom">点击获取</button>
</template>
<!-- // setup作为script的属性 是 setup函数的语法糖 -->
<script setup>
import {ref , nextTick} from 'vue'

</script>
<script>
export default {
name: 'App',
}
</script>
